projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0f8b8e
)
gtk-demo: Fix the sidebar demo
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 8 Feb 2019 23:27:56 +0000
(18:27 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 10 Feb 2019 23:43:59 +0000
(18:43 -0500)
It was still using child properties.
demos/gtk-demo/sidebar.c
patch
|
blob
|
history
diff --git
a/demos/gtk-demo/sidebar.c
b/demos/gtk-demo/sidebar.c
index 5ec3d16fd055b563e59bec20467b8bc0d65551af..d5732cec6953486f8e1afc48e56e112e12cfced2 100644
(file)
--- a/
demos/gtk-demo/sidebar.c
+++ b/
demos/gtk-demo/sidebar.c
@@
-73,7
+73,7
@@
do_sidebar (GtkWidget *do_widget)
widget = gtk_label_new (c);
}
gtk_stack_add_named (GTK_STACK (stack), widget, c);
- g
tk_container_child_set (GTK_CONTAINER (stack), widget
, "title", c, NULL);
+ g
_object_set (gtk_stack_get_page (GTK_STACK (stack), widget)
, "title", c, NULL);
}
gtk_container_add (GTK_CONTAINER (window), box);